package content.views.works;
import feffects.easing.Quad;
import tools.ASprite;

/**
 * ...
 * @author PRASS
 */

class CloseButton extends ASprite 
{

	public function new(jQuery:JQuery) 
	{
		super(jQuery);
		
		dom.mouseover( function(e) { onOver(e); } );
		dom.mouseout( function(e) { onOut(e); } );
	}
	
	private function onOver(e) : Void
	{
		tween(1, setAlpha, .75, 300, Quad.easeInOut);
	}
	
	private function onOut(e) : Void
	{
		tween(getAlpha(), setAlpha, 1, 300, Quad.easeInOut);
	}
	
}